# coding:utf-8



# str -> number
a = int("1")
b = float("12.3")
print(type(a),type(b))

# number -> str
print(str(1),str(3.10))


# str => list
str1 = "1 1 1 1 1 1 1 1 1 1 1"
print(str1.split(),type(str1.split()))
# list => str
list1 = ["1","2","3","4","5","6"]
print("|".join(list1),type("|".join(list1)))


# str -> byte
temp = "hello world".encode()
print(temp,type(temp))
print(temp.decode())


# list -> set/tuple
print(set([1,2,3]),type(set([1,2,3])))
print(tuple([1,2,3]),type(tuple([1,2,3])))

# tuple -> list/set
print(list((1,2,3)),type(list((1,2,3))))
print(set((1,2,3)),type(set((1,2,3))))

# set ->list/tuple
print(list({1,2,3}),type(list({1,2,3})))
print(tuple({1,2,3}),type(tuple({1,2,3})))


